And save the record post importing of the Image. In Second part we are Uploading the Selected Image to the InStream.įinally we clear the Picture field and load Picture from InStream, here file name will be used as description for the image.
Today in this post we will discuss about using Stream to Export or Import Files or in other words File handling using Streams.įirst Example I am discussing about is how to Import Image to Item Picture.įirst part of the code checks for if any existing Picture in the records Picture field, here we use Count to check, because Picture field is defined as MediaSet can hold multiple picture, so giving warning for Overwrite.