Solved

showing a jpeg from a byte stream

Posted on 2006-10-23
3
280 Views
Last Modified: 2008-01-09
Hi experts,

I have been putting jpeg byte streams in BLOBs in my mySQL database...

and now i'm wondering if maybe i should have done some sort of file saving technique instead...

Given that I have access to Java servlets, and i am making an AJAX website,

what is the best way that i can show these images to the website user?
(eg. make temporary files out of the byte streams, and send back the link via XML?)
Thanks
Dan
0
Comment
Question by:dbrownell83
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
alkisg earned 400 total points
ID: 17791452
<img src="http://myserver/getimage.jsp?index=8">
where getimage.jsp modifies the http headers so that it directly sends an image without writing it to the file system...
0
 
LVL 1

Author Comment

by:dbrownell83
ID: 17791540
cool, MIME types.  i forgot about those.  thank you
0
 
LVL 9

Expert Comment

by:alkisg
ID: 17793674
You're welcome!
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now