showing a jpeg from a byte stream

Posted on 2006-10-23
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?)
Question by:dbrownell83
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

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...

Author Comment

ID: 17791540
cool, MIME types.  i forgot about those.  thank you

Expert Comment

ID: 17793674
You're welcome!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstrap Form 16 37
Visual Studio npm 1 29
Compute age Html 2 24
javascript works in Chrome, but none of the other browsers 14 30
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

735 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