2
What type of variable do I use to store an image in the database? And is there a specific command for this? or just enter as any record?
i have a project in the moon language ( mobile by Corona sdk )that the person has to take a photo and I need to save this photo in the Postgresql database
I have a publishing table with the fields:
code, location, time, description ,category, image in the image I intend to store a photo taken by the user.
knowing that the mobile will be sent to the web service that will add in the bank and other type of user will be able to access these publications only through the web. how can I insert? someone can help me?
My 'whole life' I listened to never do that (save image in the database). But that was a long time ago, when the internet connection was very limited. Although it has the issue of scalability as well. I can’t tell if this is good because I don’t know the scope of your project. There are some answers below. The one that best suit, mark as right, and if possible speaks only a little more of your project.
– Paulo Sérgio Duff
solved your problem ?
– Rovann Linhalis
So Paul ( sorry if I didn’t mark you, I’m new here and I don’t know if it has to mark) but so, my project has 3 user table, organ and publication. let’s focus on the publication ( I will separate in two comments because I exceeded the character limit )
– Anderson felipe
a user will take a photo and put a description for it, a category and a location also ( the time the system picks up automatically ) . from the moment it publishes it goes to the web service that will save in the bank and to anyone else by browser can have access to these publications . and like instagram, got it? only simpler ( since I’m learning a new language ... so I’m doing the basics. ps: if there is an accent error these sorry things I am typing from a keyboard of type Eng
– Anderson felipe