• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1775
  • Last Modified:

Rotate a Base64 Image or GIF in a BLOB ?

I have a Base64 encoded image that I decode and store as a GIF image in my MS SQL database.  It works great... i can print it on-demand.  I now need to rotate that image by 90 or 270 degrees.    I can insert the rotation routine / compnent either before the Base64 image is decoded, or after.  

Is there a component for ASP that does this?    I looked at ASPImage from www.serverobjects.com and they can read in a blob but it doesn't look like they can write one.

I'd prefer not to do any .NET stuff, but will if its the only way.   I'd also prefer not to write the image to a hard drive, then manipulate, but will if necessary.  

Thanks,
Bob
0
rsorrells
Asked:
rsorrells
  • 4
  • 2
2 Solutions
 
bugs021997Commented:
@rsorrells

I haven't really got you from the question. You are able to UPLOAD the image and even display it right. If so then this following component code would help you rotate image before display.

http://www.tonec.com/products/acim/samples/s18.html


BUGS
^_^
Cheers
0
 
rsorrellsAuthor Commented:
Hi Bugs,
Actually the GIF image is generated by an XML call to a label image generation server.  It comes in with Base64 encoded, and I deocde that and store it to a SQL field.   In my desktop application, I'm able to recall that field and print the GIF label.

I bought and installed TonerC, and I'm having a few issues.  I've emailed the authors.  I will let you know how it goes.  

It does seem to be fliexible... you can load or save an image from a file, variable, or database.  

Bob


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
rsorrellsAuthor Commented:
Hi Kevp,  i downloaded and installed an eval version of AspJpeg.   It would be perfect if it could output a GIF file, but it only outputs JPG.  

Bob
0
 
kevp75Commented:
hmm....

does it "need" to be a .gif file?  Is this image you are outputting animated?
0
 
rsorrellsAuthor Commented:
The XML system that i interface to gives me the choice of GIF, JPG, or PNG.    Its a barcode image with solid black lines, and solid black text (like a UPS label).     GIF produces the smallest file size (20K) with no loss.   JPG produces the largest file size for the same imge (400K+).   Even with JPG quality of 100%, for some reason, JPG produces artifacts / fuzzyness with solid graphics like this.   Its great for photos, however, but not for solid graphic files.    PNG has no loss, but my desktop program doesn't do PNG blobs... only GIF or JPG.  

Bob
0
 
rsorrellsAuthor Commented:
I've bought the Tonec product, but it, or I, am having trouble with their database writes.   I've sent them a couple of emails, but have had no responses.   I'm still open for suggestions.    

Bob
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now