Upload video file (mp4,mpeg) in access database using vb - ms-access

is it possible to upload video file using access database and vb? i am beginner in programming and our project is all about uploading files. Can anyone help me? I used access database because that is the requirement.

Would the video files be uploaded to a local network server or to a website?
If you are uploading the files to to a local server, you could have access:
1 Open up a file dialog to browse to the file to be uploaded.
2 Copy that file to a specific directory on your network, making sure the filename is unique or possibly creating a file name based on the original file name and date of upload. ie filename_datetime.
See the following answer for steps 1 and 2: storing large numbers of images in ms access
3 Maintain information in a table with fields for: filename, file location, user, upload date, friendly file name and possibly links to other tables such as clientID etc.
If you are uploading the files to a web server, you could do this in access, but you'd probably be better off managing the uploading and listing of files in a website. You could build it yourself or look into what you already have, as many content management systems will have this kind of file management built in.

Related

What is the best way to store a large amount of csv files?

I have a web app where users upload CSV files with their data. I want to be able to save any CSV file that is uploaded and be able to access that data in the future if I need to. Right now I am saving logs from this page to a Snowflake table. I am not sure of the most efficient way to store these files at the moment. The options I have thought of are:
Save them on the web server the app runs on (not ideal)
Convert CSVs to binary and store them within the Snowflake table with the logs
Upload them to an AWS S3 bucket

How to distribute a report from MS Access to Sharepoint Online

In the Microsoft support document Distribute a report [https://support.office.com/en-us/article/distribute-a-report-561a9066-00ab-41ee-8f07-a0734810a778] is a section: Export a report to a folder or Sharepoint document library.
The description does not match with my MS Access version.
My version is Microsoft Access for Microsoft 365.
Can anybode tell me how to enter the URL of Sharepoint Online in the navigation pane?
Well, the instructions are that you want to put a word file, a pdf file, a text file or whatever into that SharePoint folder.
So, the advice in that example is NOT limited to Access. All they are saying is to run the report, export it as a PDF file. You are THEN free to copy and place that resulting PDF file into that shared folder on SharePoint. So, how you get/place/copy that PDF file into that folder is the same as how you would copy a word file, a excel file or any kind of windows file into that folder.
Quite sure you just type in the URL that points to the folder name, and then you are free to use the up-load files option in the SharePoint site. The other way is to use the "map" folder option from SharePoint, and that will give you a look alike or useable folder from the windows explore. So, how you get the exported Access PDF file (the report that is now a simple PDF) into that folder is no different then how you copy any other file into that SharePoint folder.
If a user can't copy or get a word file, a text file, Excel file, or in this case a simple PDF file into that folder, then all is lost here.
You are being asked to place/copy a pane jane windows file.
So, you run the Access report. In the ribbon (assuming Access 2007 or later) there is a export to PDF option. You thus create the PDF file on your computer, and then place that file on the Shared folder on SharePoint. So the REAL question here is?
I have a file on my computer - how can I place it into a SharePoint folder? How this works for ANY file, including that PDF you created (exported) from Access is 100% the same.
So, users will have to learn how to place a file into that SharePoint folder. Once they learn how to do this, then they can place any file - such as a PDF in this case into that folder.
So, creating that plain jane PDF file from the Access report results in a static PDF file, and then you simply copy that file to the SharePoint folder.
Now, you might want to be able to skip the step after you create the PDF, and it would be more convenient to simply specify the URL WHEN exporting the PDF from Access. As noted, to do this you need to map the SharePoint folder to a windows folder, and then this will work.
The steps are:
Log into https://portal.office.com
Click on your apps menu and choose SharePoint
Browse to a document library > Documents
In the bottom left corner of the browser click the “Return to classic SharePoint”
You have to set trusted locations. The full set of steps for this are here:
https://jasoncoltrin.com/2018/10/25/solved-sharepoint-office365-open-with-explorer-not-working-on-windows-10-internet-explorer-11/
Once that folder can be used/seen in windows, then you can specify that folder when you export the PDF. Only you can decide if all those extra steps are worth the effort, or that users just place the resulting PDF file into that SharePoint folder the SAME WAY that they now place any old windows file into that SharePoint folder.

Choosing a File Path as Part of a HTML form

I'm developing an intranet site for my company, and part of the task it has to perform is to hold a database of files and their locations as submitted by users (the files are on a network drive and people viewing the database can click links to the files to access them). I have it working now using a standard text input field where the user enters the path to the file, but is there a way of giving the user a Browse... button to choose the path instead?
Using the type="file" option isn't suitable as I don't want the actual file submitted, and it only gives the filename, not the path for security reasons. But that's the sort of thing I'd like.
Thanks!
No.
Browsers aren't designed to expose details of the client file system to the server.
Build your file browser server side instead. The server should be able to access the same network drive.

Is it possible to open an excel file in its current location not download it

I am writing a small web site for a company Intranet and have the following question that may be simple. Is it possible to open an Excel file from it's current location on the network instead of downloading it. So that any changes made are made to the actual file and not a downloaded version of it?
Thanks
Matt
Yes, it's possible, but then you would have to specify the address of the file in the local network, not as an HTTP address on the web server.
The user would naturally need to have access to the file on the network share, with write permission.
No. It is not possible to open a remote excel file across HTTP and write changes back to it.
Let's consider some other things you might be trying to do.
If you are running excel, all you can open are files visible to the file system APIs. That means files on your local disk and network file systems accessible via CIFS. Mapped drive letters, \\ pathnames, that sort of thing.
If you set up an Excel file for download from a web server, it will always be downloaded. Excel won't open it 'in place'.
The Microsoft technology solution that addresses what you seem to be asking for is Sharepoint.
Anything you open from a HTTP connection I believe is "downloaded" to the client. Its more how you "uploade" the changes.
But if thats what the customer wants I have some alternatives:
1) Use Dropbox or similar filesharing utils. Once someone saves a document in Dropbox, its automatically uploaded to the Dropbox account. The free version allows up to 2 GB of data. Thats quite a few Excel files.
2) Use Gmail/Google Apps. If you do you get 1 GB space for online documents. You can upload Office files suchs as Excel and they will be converted an online editable from within the Google Docs. You can share the files within the domain or even externally if you make that setting the admin part. Afterwards you can also download/export the Spreadsheet as Excel format. I havent tested how much of the standards you loose but ofcause its not a full Excel.
3) wait for Microsoft to finish their Office online. I bet that Excel version will do exactly what you are currently asking for by using some special plugin or MSIE9 technics. But I dont really know yet.
Hope some of this gave you some ideas?
If the file is in a network share on the same domain (or reachable from the domain your app is running from), it is possible, provided that
The share is readable and writeable by the domain\user the app runs under (via ownership or assigned role.)
The file is shareable (IIRC). This is important if multiple users (or apps) need to access it.
Other than that, a \domain\location path should be treatable just like a local (or disk mounted) path.
In your HTML document, create/place a link:
<a href='file:///H:/docs/foo/bar.xls'>Your Excel File</a>
Substitite your network UNC path for H:/docs/foo/bar.xls. Note the slashes instead of the regular UNC backslashes.

Access 2007 - Why won't Access work on workspaces/web folders?

So if I try to take an Access database that currently resides on a network shared drive (or try to create a brand new one for that matter) on a web folder of a "workspace", why won't it work? I have read, write modify permissions on the folder I am trying to add it to, however I can errors, and it won't recognize the file type (.accdb or .mdb gets made .unk).
Could someone just explain the logic to me of why this doesn't work?
EDIT: So I guess I should include that on the shared drive there is a folder that houses the access front end file, and another folder within this folder that houses the BE tables file. I tried to reproduce what it one the shared drive in the web folder. I cannot even get the .mdb portion to work unless it's downloaded locally to my computer.
The easy way arround this problem is to use a ODBC DSN to access the database, (BE) and have the FE (front-end), in your local computer. This happens because MS-Access needs to lock the file while using it.
You should be able to work with the FE using SkyDrive and other services like it, cause they copy the file localy, and when you close the file they syncs it to the web folder.