Preview Word & Excel in a PDF control connector/API - azure-blob-storage

I have a custom entity where I am using the file type column in dataverse and I have a workflow that stores every file that is being uploaded to Azure blob, delete it from Dataverse and fill up the URL of the file in another column.
The user should be able to preview any document type that is being stored in Azure blob based on the file path of the form. Previewing the file should be in the canvas app and not inside model-driven.
In Azure Blob, we can only preview PDF and image files, and the canvas app only supports seeing those files.
However, when it comes to Word and Excel documents, users will not be able to preview the file and the only option will be to download the file to their local desktop since there is no API for Azure Blob that supports those formats.
In SharePoint we do have API's to preview documents such as word/excel/PPT etc.. (we can't use SharePoint in our requirements)
I am trying to find a way to allow the user to preview the above-mentioned document types within the canvas app.
Is there any 3rd party API we can extend in the canvas app that converts other doc types to PDF? I thought of creating a flow that calls an API and responds to power apps to preview the file.
Some helpful content that I found are based on SharePoint/Dataverse but my scenario is totally different where I am using Azure Blob that is:
https://www.youtube.com/watch?v=vqK29FWbLxU&t=221s
https://www.youtube.com/watch?v=GFfAkk3g1y8&t=3s
https://pcf.gallery/notes-attachment-file-preview/
Any help is highly appreciated.

Related

Laravel - Editing Microsoft Word Documents Stored on AWS S3

I have a Laravel web application that stores some word documents on AWS S3 and I'd like to be able to edit these documents on the fly. Currently the only way that I know how to do this is to download the file, open it, edit it, save it, and the reupload and replace the document already on S3. This just seems a bit cumbersome and I'm wondering if there is a better way.
I'd like to be able to open the word document (either through an online app or via the native MS Word app), edit it, and when I save it, it would automatically save to the S3 file. Any advice?

Get CRM WRPC-Token for display images in Webressource

In my CRM HTML-Webresource, I got to display E-Mail activities with it's images (saved as attachments) as HTML. I take the description attribute for that.
As I realized, at least in CRM-Online, every attachment-image has a WRPC-Token that I need for the correct file path to load it.
How can I get the token? Most of the solutions that I found are either old or don't work for my circumstances.
Can I fetch the token out of the given HTML?
This approach doesn't make sense to me,
Attachments are stored within a database behind a web service, they are not at a file path you can simply open.
WRPC-Token's are used in security, I'm not sure how it is relevant or could provide a file path.
I would suggest writing code to access the CRM web services, this will enable you to retrieve the attachment data. There is an example here Sample: Create, retrieve, update, and delete an email attachment.

Sitefinity Export Document & Files ,Images , Videos from one database to other without enterprize license

I need to export sitefinity content from Document & Files ,Images , Videos of one database to other. I know there is some synchronization feature which is only available to enterprise license which i don't have. Is there anyway that through some other way or database script i can export and import data.
I am using Database as storage for those content instead of file system.
I am using sitefinity version 6.3
There is no built-in functionality to do so, but you can always use the Sitefinity API to get the images, documents, videos, etc. and upload them to the new site.
The Sitefinity documentation is a good place to start:
http://www.sitefinity.com/documentation/documentationarticles/developers-guide/sitefinity-essentials/modules/media-modules/documents-and-files/managing-documents/modifying-documents

Is there a way to overwrite existing Blobs in the blobstore

I'm using the high performance image serving feature in App Engine to serve up images from the blobstore. However, I'd like users to be able to modify those images (e.g. rotate, crop etc.) and then write those change back to the blobstore, overwriting the original blob. I know I can write to new blobs in the blobstore, as documented here: http://code.google.com/appengine/docs/python/blobstore/overview.html#Writing_Files_to_the_Blobstore
but I don't see a way to overwrite existing blobs. Is this possible in App Engine?
My use case is as follows:
User uploads image, and app engine generates a link via
get_serving_url
The user may then use that link outside of my app, e.g. link to it
on their blog to display the image
If that image is changed later on in my app (rotation, etc.) , I'd
like their image link to reflect those changes
Files stored in blobstore are immutable, once they have been written than can not be changed (only served or deleted).
I think you should try to build your own controller for generate file serving url
- In Datastore each blobFile record have own ID (you manage it) and version ID
- for first upload , set new ID and version
- When user change your image, save new blobstore, keep ID and set new version field
In serving controller generate link by iD, when user call it, get the newest version for serving
It's just my opinion, hope it helpful !

How to let users store multiple size images in cakephp environment?

Im building a mobile app for android & ios using appcelerator. I've build a rest server using cakephp
which returns json.
I would like to know how i could make it possible that users upload a image to a server and the server
resizes this picture to 2 different standard sizes and stores them on the server. This image should be
accessible trough a json get request along side with other corresponding information. My questions are
How can i autimatically resize pictures that are uplouded by users in to two standard sizes and
how can i store these images(in folders or DB) so they are accessible through json alongside their other corresponding infomation?
for the resizing, just google "php resize image". Store the images in some folder in webroot/img folder and store the file name in the db. You might need to rename the file in case there's another file with the same name. When requested, just give the users the url to your image.

Resources