Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / October 2003

Tip: Looking for answers? Try searching our database.

How to convert JPEG image into a binary data?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lucas Cowald - 15 Oct 2003 09:51 GMT
Hi,

Using ASP and VBScript. How to convert JPEG image into a binary data? Is it
possible with a command from ASP / VBScript without having to put it into a
database first?

I want to take the JPEG image from a folder, convert it into a binary data,
and stream it to the browser. How can I do it? Can you show a short code?

Thank you for your help.
Steinar Herland - 22 Oct 2003 17:15 GMT
Not exactly the question I would expect in this group, but the .NET way to
do this would be:

Response.ContentType = "image/jpeg";
Response.WriteFile(filename);

If you'r not using .NET, you should post to a different newsgroup. If you
don't know where to insert the code, you should probably get a good book on
ASP.NET  ;-)

Good luck.

PS: I posted a question asking how to cache the image (preferably on the
client/browser), to prevent the image from being downloaded each time, but I
have not found the answer to that yet. (IIS handles that fine on "static"
images)

brgds, Steinar Herland

> Hi,
>
[quoted text clipped - 6 lines]
>
> Thank you for your help.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.