Saving image to sever.
I have a signed jar file. In it is a class file called image.class.
The image.class creates a bufferedImage called bimg. Now I want to store bimg on my server as image1.jpg so I can do this: www.mywebsite.com/image1.jpg and I can view the image.
But it only works local. And not if I add the jar into a html page.
Could someone olease help me on this one?
I believe the proper way to go about this is to save the image into a database and have you website link to that item in the database.
SQL database? I've read some thingds about that.
Again I am not positive in the slightest if this is the proper way to go about this but from what I know about web design it should at least work(probably better ways but I don't know). Perhaps someone else can be of more use.
Storing it in a database would work, but it seems you would take a performance hit because you would have to pull the image from the database every single page request instead of retrieving the image from the clients browser image cache.
Well what would be a better way in your opinion?