?
Solved

showing a jpeg from a byte stream

Posted on 2006-10-23
3
Medium Priority
?
289 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
[X]
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
3 Comments
 
LVL 9

Accepted Solution

by:
alkisg earned 1600 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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…
Suggested Courses

777 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