remoteobject

Saving a bytearray with php received from Flex Air app

ε祈祈猫儿з 提交于 2020-01-23 19:27:47
问题 I have an Air application with remote service in codeigniter. I'm trying to save a bytearray that I received from the Air app but when I save the data I get empty files with the correct filename. So there must be something wrong with my bytearray or the way I save the data. Does anyone have an idea what I'm doing wrong? I've debugged the Arraycollection I sent and the bytearray is definitely in there. public function uploadImage($image) { foreach($image as $img) { $file = $img['name']; $data

Using RemoteObject (AMF) from a Flash or Pure AS3 Project

こ雲淡風輕ζ 提交于 2020-01-14 13:40:48
问题 I recently ported some code from a Flex project over to a new pure AS3 project. When i attempted to make an AMF call, I am getting an error message like this: TypeError: Error #1034: Type Coercion failed: cannot convert Object@5425371 to mx.messaging.messages.ErrorMessage. There was no stack trace associated with the error, so debugging was difficult. I tried all manner of things (checking that all required libraries from the flex framework were included, etc) but nothing worked. 回答1: After

remote jars in the classpath

妖精的绣舞 提交于 2020-01-02 05:32:09
问题 Sorry, maybe this question is too silly or already answered, but I couldn't find it out. I'm wondering if there is some known Java class-loader that is able to accept remote files in the classpath, i.e., entries like CLASSPATH="http://somewhere.net/library.jar:...". Note that I am not talking about applets or Java Web Start. Think of an application that can use different back-ends (e.g., MySQL, Oracle), I'd like to prepare the classpath in a shell script, based on the user's back-end

How do i handle Remote Method calls via AsyncToken?

情到浓时终转凉″ 提交于 2019-12-24 19:09:59
问题 So here is the mxml i would like to get working: <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ import argoseye.main.Golem; import mx.collections.ArrayCollection; import mx.rpc.AsyncResponder; import mx.rpc.AsyncToken; import mx.rpc.Responder; import mx.rpc.events.FaultEvent; import mx.rpc.events.InvokeEvent

SkImageDecoder::Factory returned null

蓝咒 提交于 2019-12-20 01:40:35
问题 I'm programming on Android and read images from a remote URL with this call BitmapFactory.decodeStream( .... Random, I get the error: SkImageDecoder::Factory returned null I read some thread here but not solve my problem (Use a wrapper to InputStream class, use drawable, etc) Any Idea? 回答1: I also had this problem... eventually i found out that the image was too big and that caused the error. I suggest you try an image that you know will fit more or less. also you can use the lib picasso:

java.rmi.ConnectException: Connection refused to host: 127.0.1.1;

无人久伴 提交于 2019-12-17 04:56:10
问题 java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:128) at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod

C# Configure LoadFromRemoteSources through code not app.config?

浪子不回头ぞ 提交于 2019-12-12 19:22:16
问题 I currently have an app.config with the following config value: <configuration> <runtime> <loadFromRemoteSources enabled="true" /> </runtime> </configuration> So far I have been able to remove everything else out of my app.config and configure things just using pure C# code except the loadFromRemoteSources . Is there a way to enable loadFromRemoteSources through C# code? I understand the pros and cons of having an app.config, but I would prefer not to have one. Thanks! 回答1: I can't find any

RemoteObject inconsistent channel location

醉酒当歌 提交于 2019-12-12 04:44:29
问题 I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root to loc.context.root. To make matters more confusing, it only does this on the dev server (QA and production are fine, as are local builds). The relevant information from the config

Convert Bitmap image to String format to send over network(LAN) and vice-versa

女生的网名这么多〃 提交于 2019-12-11 02:16:03
问题 I am basically developing a software in Visual Studio 2010 .NET 4.0 where in I capture the screenshot from a pc and send it over a network to another. Since I cannot directly send a Bitmap, I have to convert it to String. I did a lot of internet search but cant find any solution. :( I found this code on stackoverflow itself. But it it doesnt work. I tried to print the string (converted from image) but the program behaves like that line doesnt exist. I used a MessageBox.Show(String); But not

Flex RemoteObject - handling multiple requests

做~自己de王妃 提交于 2019-12-07 11:14:45
问题 I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases. Any advice on doing that? Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like: <mx:RemoteObject id="rpt" destination="AMFServer"> <mx:method name="getSalesStats" fault="getSalesStatsFault(event)" result = "getSalesStatsSuccess(event)" /> <