I trying to get data from ms access database stored in Azure File Storage. I set right path to storage, but when I try to get data from base I got this error.My application work fine when ms access database is on my machine.
This is my code:
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
connection = DriverManager.getConnection("jdbc:ucanaccess:http://example/example/example/Database.accdb");
When I change the url I get error
net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.2 given file does not exist:.
I downloaded the zip file of UCanAccess
source code and viewed it, it seems not to be the ability to connect the access database file via network protocols like HTTP, besides via the url of local filesystem like //c:/...
on Windows or ///path/...
on Unix-like OS.
So for implementing your needs, there are two solutions as below.
Hope it helps.