<div dir="ltr">I understand,  I have to create a collection of internal addresses of the images and they are saved in the system (folder).<br>After saving it, it must be presented on the screen.<br>The library to implement that is FileLibrary or there is another.<br>Thanks.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:13.63636302947998px"><br><table style="font-size:10pt;width:664.54541015625px" cellspacing="2" cellpadding="2" border="0"><tbody><tr><td style="text-align:left"><br></td><td><div style="text-align:left"></div></td></tr></tbody></table></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El jue, 3 de jun. de 2021 a la(s) 13:10, Esteban Maringolo (<a href="mailto:emaringolo@gmail.com">emaringolo@gmail.com</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Having picture1, picture2, as separate instance variables is a too<br>
naive implementation and would hit limitations very easily.<br>
<br>
In the next simplest implementation of this I would recommend that the<br>
"Product" class has a "pictures" instance variable referencing an<br>
OrderedCollection, and each element of such collection is the path to<br>
the image file on disk.<br>
<br>
So when you upload the file from a form you save it to a certain<br>
location on disk and then update the product instance collection of<br>
pictures.<br>
<br>
Regards,<br>
<br>
Esteban A. Maringolo<br>
<br>
On Thu, Jun 3, 2021 at 3:52 PM Oswall Verny Arguedas C.<br>
<<a href="mailto:sistecaq@gmail.com" target="_blank">sistecaq@gmail.com</a>> wrote:<br>
><br>
> Greetings,<br>
> I have a query about saving instances of a class that are of type image (picture).<br>
> For example. I have a Product class. This class must have two photographs of that product. I have to save two instance variables of the Product class, picture1, picture2.<br>
> These images must be uploaded from the Product form and displayed after uploading.<br>
> In Seaside what would be the best procedure to do it.<br>
> I don't know if WAFileLibrary would be the best option.<br>
> Thanks in advance.<br>
> Oswall<br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div>