Re: Loading image data from DB

2006-04-12 Thread Devin Asay
Thanks, Jeanne. I suppose one of the drawbacks of high level programming is that it insulates us so much from the ones and zeros that those of us who came into x-talking from a non-programming background never quite got some of the fundamentals. As this example shows, there are times when

Re: Loading image data from DB

2006-04-11 Thread Jeanne A. E. DeVoto
At 10:47 AM -0600 4/7/2006, Devin Asay wrote: Which is essentially what I ended up doing, and it worked. Is it correct to assume that 'the text' is binary data expressed as ASCII text and data like 'the imageData' is lower-level code that can't be expressed visually in a meaningful way?

Re: Loading image data from DB

2006-04-07 Thread Rob Cozens
Devin, The trick seems to be that you upload and download the image data as *text* (as opposed to the imageData of the image, which is binary.) I may have this all wrong conceptually, but that's how it finally made sense to me. An image's Text property is binary data that comprises the

Re: Loading image data from DB

2006-04-07 Thread Devin Asay
On Apr 7, 2006, at 10:32 AM, Rob Cozens wrote: Devin, The trick seems to be that you upload and download the image data as *text* (as opposed to the imageData of the image, which is binary.) I may have this all wrong conceptually, but that's how it finally made sense to me. An

Re: Loading image data from DB

2006-04-07 Thread Rob Cozens
Devin, Is it correct to assume that 'the text' is binary data expressed as ASCII text and data like 'the imageData' is lower-level code that can't be expressed visually in a meaningful way? My assumption is the image's Text is identical to the content of the gif, jpeg, or whatever image

Re: Loading image data from DB

2006-04-06 Thread Rob Cozens
All: put the imageData of image picImage into tBits I asked this question before, and I still haven't gotten to the point of testing: Why does everyone choose the imageData of the image instead of its text? From Rev Dictionary: The imageData, unlike the contents of the image container,

Re: Loading image data from DB

2006-04-06 Thread Devin Asay
Thanks to Chris and Rob I've got this working. Rob proves once again how reading the blinking manual can make you look like a genius. (Not to imply that Rob is not one, just that in addition to his native intelligence he has a passel of common sense.) Chris's contribution was a necessary

Re: Loading image data from DB

2006-04-06 Thread Rob Cozens
Shucks, Devin Rob proves once again how reading the blinking manual can make you look like a genius. (Not to imply that Rob is not one, Even a Triple Foole can come off looking smart once in a while. :{`) Rob ___ use-revolution mailing list

Re: Loading image data from DB

2006-04-06 Thread Mark Wieder
Rob- Thursday, April 6, 2006, 8:47:40 AM, you wrote: Even a Triple Foole can come off looking smart once in a while. :{`) ...gotta watch it or you'll lose your amateur standing... -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing

Re: Loading image data from DB

2006-04-06 Thread Devin Asay
Now I've figured out the other half of this cycle: how to upload image data to a database. The trick seems to be that you upload and download the image data as *text* (as opposed to the imageData of the image, which is binary.) I may have this all wrong conceptually, but that's how it

Loading image data from DB

2006-04-05 Thread Devin Asay
I know this can be done, but it's got me stumped. Nothing conclusive from archives. I want to store image data in a mysql database and then show it in an image object in Rev. I successfully loaded an image into a field of type longblob. I know the data is there and that it's valid. This

Re: Loading image data from DB

2006-04-05 Thread Dave Cragg
On 5 Apr 2006, at 23:37, Devin Asay wrote: I know this can be done, but it's got me stumped. Nothing conclusive from archives. I want to store image data in a mysql database and then show it in an image object in Rev. I successfully loaded an image into a field of type longblob. I know

Re: Loading image data from DB

2006-04-05 Thread Trevor DeVore
On Apr 5, 2006, at 3:37 PM, Devin Asay wrote: I know this can be done, but it's got me stumped. Nothing conclusive from archives. I want to store image data in a mysql database and then show it in an image object in Rev. I successfully loaded an image into a field of type longblob. I

Re: Loading image data from DB

2006-04-05 Thread Devin Asay
On Apr 5, 2006, at 4:55 PM, Dave Cragg wrote: On 5 Apr 2006, at 23:37, Devin Asay wrote: I know this can be done, but it's got me stumped. Nothing conclusive from archives. I want to store image data in a mysql database and then show it in an image object in Rev. I successfully loaded

Re: Loading image data from DB

2006-04-05 Thread Devin Asay
On Apr 5, 2006, at 5:43 PM, Trevor DeVore wrote: On Apr 5, 2006, at 3:37 PM, Devin Asay wrote: I know this can be done, but it's got me stumped. Nothing conclusive from archives. I want to store image data in a mysql database and then show it in an image object in Rev. I successfully

Re: Loading image data from DB

2006-04-05 Thread chris bohnert
The only way i've ever been able to get this to work is by using the variable binding when inserting data into the blob. By using the *b prefix on the variable name in the execute parameter the binary encoding routines kick in. put the imageData of image picImage into tBits put the text of