Re: Test an Online Database Utility

new topic     » goto parent     » topic index » view thread      » older message » newer message

cklester wrote:
> 
>> and play around with the site. Make some databases. Make some tables. Make
> some records. Delete some or all of the above.
> 
> Also, how would one make a page so a user could upload a graphic?
> 
> Thanks!

Looks good, for what it does.  I mean, I guess the three table limit is just
arbitrary? smile

To store a graphic I'd use a file upload field and convert it to a sequence
verbatim with a header saying what type it is (using a Content-Type would
save processing retrieving the data, and also allow other data types, eg 
image/jpeg, application/octet-stream, etc.)  I don't know if you can
automatically
get the content type from the file upload field though?

Then when you display a record you could detect the type and display it
appropriately, eg display the image, offer a download link, stream the flac
file etc.

To be truly useful you might want to define fields in the databases and add
records based on the fields present.  But then I guess it's up to whatever
application you have in mind :)

Gary

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu