• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mysql blob
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mysql blob


  • Subject: mysql blob
  • From: Bastiaan Boertien <email@hidden>
  • Date: Tue, 19 Apr 2005 15:32:43 +0200

HI list,

I know that this subject does not belong to this list directly but i'm stuck with a xcode application,

What I'm trying to do is to put in an NSImageView a image from my MySQL server.

what I tried first to know if it could be possible to do this

theFile is an jpeg

open for access file theFile
set myResult to read file theFile
close access file theFile

set newFile to (Path to desktop folder) & "tmp.jpeg" as string
open for access file newFile with write permission
set eof file newFile to 0
write myResult to file newFile
close access file newFile

then I opened tmp.jpeg with the preview from Mac OS X and it works. then I put the image in an NSImageView and this also works

but when I put the myResult in my MySQL server and load it later from MySQL server the application preview wil return an error about the data structure.

Then I tried to set in in a blob (Binary Large Object) field but it's still not working. I think I do something wrong with the binary structure.

can somebody help me?

greetings bastiaan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Mount Current Users Folder as Disk
  • Next by Date: Re: shell equivalent to text 1 thru -9?
  • Previous by thread: Re: Safari "do javascript" busted?
  • Next by thread: Antw.: Choose-your-own-adventure game
  • Index(es):
    • Date
    • Thread