FileInput y cargar imagen a un objeto Imagen - Forum

Forum Navigation
You need to log in to create posts and topics.

FileInput y cargar imagen a un objeto Imagen

Se puede usar FileInput para cargar una imagen a un Objeto imagen dentro de la aplicacion?

Lo intente, puedo ver en una variable el texto de la imagen con su extension, pero si lo asocio a una imagen a esa variable no la puedo ver.

Lo que intento es poder guardar esas imagenes subidas a una base de datos

@gustavo1973 una cosa es mostrar una imagen, otra distinta subirla a un servidor y otra diferente almacenarla en una base de datos. Normalmente en la base de datos se almacena el nombre o la URL de la imagen. Si quieres gestionar archivos en el servidor de una manera sencilla, lo mejor es utilizar un script PHP específico para eso, como  por ejemplo este.

@luishp

If you want to manage files on the server in a simple way, it is best to use a specific PHP script for that, such as this one .

On the surface, it sounds very appealing.

Reviews and comments suggest that there is ...

1) no ability to organize photos in sub folders

I wonder if the same script can be installed in several folders within the same server/host, each pointing to a different folder; does the license permit such use ?

2) no support for the script from the author

Does the license allow developers like you to alter/enhance the php script (sub folders, access control etc.) ?

Using the recent facility to access content on Google Sheets, I have been able to dynamically (i.e. at run time) populate ListBoxes and Containers with data ... I could not access images that are visible in the sheet's cells ... so the work around is to store the url of images (or raw html including the <img> tag) in Google Sheets ... and store the images elsewhere ... a service that allows photos to be accessed (without concerns for CORS restrictions) would be the ideal one-two punch.

Would you consider offering a service (VisualNEOPhotos) that can be accessed from a VisualNEOWeb App (plugin) ... $x per GB of storage and/or $y per GB of traffic. ? ... if you are willing to consider this, perhaps users can be polled for their interest.

@Luishp , con respecto a lo que dices, de guardar en la base de datos las url a las fotos, en bases mysql yo he guardado imagenes tipo "BLOB" pero desde PC usando NeoBook o VisualNeoWin ,

Lo de poder mostrarlas en pantalla antes de cargarlas es simplemente estetico, estoy experimentando en un sitio donde el usuario pueda subir sus fotos y que despues queden asociadas a su ficha en la base de datos para mostralas cada vez que se invoque ese usuario.

Cual seria la diferencia o limitaciones de por medio entre subir una foto directo a la base de datos o en guardar el link de la foto y sub ir esta al servidor a una carpeta determinada?

Y si fuera de la segunda manera , existe manera facil para los que nos abemos mucho de subir estas fotos a un servidor y que queden accesibles para cuando se las necesite al buscar una ficha en la base de datos

@gaev, @gustavo1973 please take a look at the attached sample app. It retrieves images in SVG format from Google Sheets.
For vector format and small images, storing them in Google Sheets is a possibility (Up to 50.000 characters /cell). Only a good idea if you are going to use a few data rows. SVG images are also very easy to store inside a database as they are just text.
Anyway storing images into a database is probably lees efficient than storing them as independent files.
There are a lot of free image hosting services and @palamar shared a plugin to upload files to the server using PHP.

Regards.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim