Thanks for providing details, this was known to us.
We are doing one sample application in WAB where we select folders containing geotag images and it would read coordinates from image and create a service in ArcGIS Online or Portal which we have already provided empty service, so in this process, coordinates are copying into feature class or service created but image blog or raster file could not be added in ArcGIS online or portal. So we require if there is any other process other than above.