Using azure blob storage for installing ios apps - app-store

I am trying to set up a private app store using azure. I'm trying to use azure blob storage for storing .ipa and .plist files.
here is the reference:http://gknops.github.io/adHocGenerate/
I am able to upload files to azure blob storage and the files are available in the container with container access(i am able to browse to the file in my mobile).
Now when I try to use itms-services and open the .plist files hyperlink it is throwing that "cannot connect to xxxxxxx.blob.core.windows.net". But when I open the links to my ipa and plist they are working.
All the urls(html, ipa nad plist) are https only and using a mobile network so there are no network restrictions.
ex:
I am uploading the stored file as: myFile_v2-1-6.ipa, myFile_v2-1-6.plist
I am referring it in html as
https://xxxx.blob.core.windows.net/xxxxxxx/myFile_v2-1-6.plist">
Can someone help me with this issue? Your help will be very much appreciated.
EDIT:
my html is there in https://xxxxxxxxx.azurewebsites.net

Azure Blob storage was working fine.it was the problem with my plist file.
i am editing it using XmlDocument and saving it, then XmlDocument adding braces [] to the DTD element because of which the plist file is corrupted and throwing this error.
took some to understand this and now i am removing the [] using string replace and using that plist file. app installation is all working fine.

Related

Create a config file for MacOs application

I am creating an application on MacOS using swift. I want the end-user to save some details in a config file like "Server Address" ,"port" etc. My app reads from this config file and used the values at runtime. What kind of files are used on MacOs as config files? What extensions would they have? I came across plist files. But I am confused if this file can be used by a end-user.
Real Mac apps don't use user editable config files, but store their settings in UserDefaults.
https://developer.apple.com/documentation/foundation/userdefaults

how to open any network file on Flutter?

Currently, I am using open_file: ^3.0.1 plugin for an open local disk file. But How to open any network file? I store the file on Firebase Storage and I read URL.
for Local File open
OpenFile.open(path);
I stored any type of file to firebase storage... And also I load all files from firebase storage. Users can open(view) these particular files
Example:
Url 1 = https://... - image
Url 2 = https:// - pdf
Url 3 = https:// -
word
One way of accessing files from a network is downloading the file to a temporary directory on your device. You can use flutter_downloader to achieve this. Once downloaded, you can read the file from the path.
But since you're using Firebase Cloud Storage, follow this guide to download the file. If you wish to only temporarily store the file, you can delete the file when not in use anymore.

Audio encoding, sample rate, and re-encoding in Google Cloud

Is it possible to lookup the audio metadata for a file stored in Google Cloud without having to download it? When building a Google Speech-to-Text API service you pass it a gs://bucket/file.flac, and I know the sox and ffmpeg bash and Python commands for locally stored files metadata lookup, but I can't seem figure out a way to lookup audio file metadata on Google Cloud Storage file.
Additionally if I have a gs://bucket/audio.wav, can I re-encode that using sox/py-sox and write the new audio.flac directly to gs://bucket/audio.flac? Or do I have to download the audio.wav to re-encode it?
Any thoughts or directions appreciated.
No, it is not possible to access the metadata you want directly in google Cloud Storage. Using the command gsutil ls -L gs://[bucket_name]/[file_name] will prompt the metadata of that file within the bucket. You can modify these metadata, but not the ones you are referring to. You will need to download the files, re-encode them and upload them again.
You cannot do that re-encoding operation in Cloud Storage, you will need to download the file and process it the way you want before uploading it again to your bucket. However, here is a workaround if it works for you:
Create a Cloud Function triggered when your file is uploaded. Then, retrieve the file that you just uploaded and perform any operation you want with it (such as re-encoding into .flac). After that, upload it again (careful! If you give the new file the same name and extension, it will overwrite the older one in the bucket).
About your library, Cloud Functions use Python 3.7, which for the time being does not support the py-sox library, so you will need to find another one.

SAPUI5 deploy application with binary files MIMES

I'm currently building an app with some binary files (jpeg, mp3 ...).
When I upload my app on the gateway system, the binaries are uploaded in a "MIMES" folder.
How can I access those files from SAPUI5 ?
I placed all my binaries (PNG images in my case) into a separate folder /png under webapp folder in Web IDE and in controller onInit event I calculate the path like this ("hcm.myleaverequest.ESSLeaveReqExt" is my app id):
this._sPNGpath = $.sap.getModulePath("hcm.myleaverequest.ESSLeaveReqExt", "/png");
and also store this path in a local JSON model ViewSettings to make it possible use it in binding expressions. Something like this:
icon="{ViewSettings>/PNGPath}/mylogo.png"
Such an arrangement works fine for me after deploying to the SAP gateway.
Update for MP3 files:
It appears Web IDE can't import MP3 file as binary, it always formats it thinking it's a text file. However, if you change the file extension to png you can load the file into a project folder. After that you can play the file by standard tag using sap.ui.core.HTML control:
<core:HTML content='<audio controls><source src="{ViewSettings>/PNGPath}/old_telephone_ringing_copy.png" type="audio/mpeg"></audio>'>
Most probably it would work after deployment (I didn't try it though)

How to unzip, zipped XML file in iPhone?

I am developing an application in which I am getting a zipped XML file from web service.
Now I need to unzip it and I have to parse it. How can I unzip an XML file coming from web service??? Is it necessary to save unzipped file (after unzipping) before taking it to parse or is there a code which gives unzipped file directly without saving it to documents directory?
Code for this is helpful.
Thanks in advance..