5 posts in this topic
I'm working on a function to extract text from a .txt.gz file in a container field:
//SM_TextFromGZIP ( containerFieldName ) import java.util.zip.GZIPInputStream; import java.util.io.*; GZIPInputStream gunzip = new GZIPInputStream(fmpro.getContainerStream(containerFieldName)); InputStreamReader reader = new InputStreamReader(gunzip); BufferedReader pr = new BufferedReader(reader); String line; String finalOutput = \"\"; while ((line = pr.readLine()) != null) finalOutput += line; return finalOutput; When I run this, I get this from the SMLastStackTrace function:
java.io.IOException: com.prosc.fmkit.types.FMBinary$FMContainerInputStream.read() returned value out of range -1..255: -117 at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:250) at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:237) at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:140) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:56) at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ... Any thoughts on a fix or alternative solution?
My old fp7 solution had some fields that store the path to external pdf files, the files were stored in the same server machine and the path were like "file://oldserver/folder/file", the pdf files are shown in the solution through a webviewer field. The solution is developed under the 'separation model'.
I just converted the solution to FM15 and I moved into a new server, at present I have both servers up and running, so the fmp12 database with fields pointing to "file://oldserver/folder/file" still shows pdf files as expected.
Given that I want the paths to point to a certain folder into the new server I'm trying to find the right path to the new location of files but so far I haven't been able even thought I made sure that users fmserver and fmsadmin have full permissions on the folder that stores the pdf files.
On the other hand I've seen that FMS15 creates a folder named "RC_Data_FMS" with a subfolder for each fmp12 file where the external container data is meant to be stored. Am I forced to store my pdf files in there OR somewhere else in the network?
Thank you in advance.
I have developed a solution for IOS devices which also utilizes scripts that facilitate importing of GPS coordinates and especially photos from the device, i.e. iPhone or iPad, within FMGo. Although I have scripted the possibility of emailing images originally captured by the solution outside of the solution, there does not seem to be a possibility for exporting the captured image to the Photos app and thus pushing them to the iCloud. I know one could first capture the image in the Camera app and then import it into a container within the solution, but this distracts from the all-in-one nature of my solution, where quick image capture is paramount. Ideally, the user would use the solution to capture the image and related contextual data, but also elect to save such an image in the Photo app at a later stage to permit sharing it to social media apps, for example.
I'm fairly advanced, having used FM since the Claris days.
I am experiencing a nasty problem with a Filemaker Server 126.96.36.1992 on Windows Server 2012R2. PDF s in a container field don't display, but instead either one of two things happen:
1 on FMPA14 running on Terminal Server (Windows), an error displays 'Security settings do not allow downloading this file' (or something similar, the message is in Dutch). the dialog doesn't display a FileMaker icon, only a yellow warning sign (Windows?). The Terminal server has Acrobat Reader DC installed, which can open the PDF locally. Opening the FMP database with the FMPA locally displays the PDF, both stroed 'in file' and as Remote Container.
2 on FMP14 running on a normal Windows workstation, the PDF is opened in Adobe Acrobat in a separate window instead of being displayed in the container field.
We checked ports 80, 443, 16000 and 16001 being blocked on the Firewall (clients and server are within the same LAN). PNG and JPG will display OK, and the PDFs are stored properly, so it seems.
Where is this security error coming from?
Could it be a problem with Windows Server 2012 not allowing Tomcat Server to run? And if so, what can I do to fix this?