[FLA] subir ficheros el cliente

Hola foro...
hace poco (creo) alguien preguntaba la posibilidad de hacer
un sitio donde
el cliente lo puediera "mantener" subiendo el ficheros....
a mí ahora se me ha planteado el hacer un sitio, pero el
cliente quiere
hacerse él el mantenimiento, subiendo fotografías y
vídeos de sus
productos....
he estado mirando por aquí los mensajes y no lo consigo
localizar, por
favor, alguien que me pueda echar una mano de cuál era
el mensaje o alguien
que me pueda informar de cómo se puede hacer esto?
gracias.
::javier.

puedes ampliarme un poco mas franrocio... es que no lo tengo
muy claro el
cómo hacerlo, la verdad...... tipo un formulario como si
estuviese enviando
un correo con un adjunto y que la web lo reconozca
maquetándolo y tal?
ya digo que ando un poco perdido en esto.
"franrocio" <[email protected]> escribió en el
mensaje
news:epvq5b$oro$[email protected]..
> yo utilizo php para subir los ficheros mediante un
formulario
>
> "javiestufa" <[email protected]> escribió
en el mensaje
> news:epvpct$nq5$[email protected]..
>> Hola foro...
>> hace poco (creo) alguien preguntaba la posibilidad
de hacer un sitio
>> donde
>> el cliente lo puediera "mantener" subiendo el
ficheros....
>> a mí ahora se me ha planteado el hacer un
sitio, pero el cliente quiere
>> hacerse él el mantenimiento, subiendo
fotografías y vídeos de sus
>> productos....
>> he estado mirando por aquí los mensajes y no lo
consigo localizar, por
>> favor, alguien que me pueda echar una mano de
cuál era el mensaje o
> alguien
>> que me pueda informar de cómo se puede hacer
esto?
>>
>> gracias.
>>
>> ::javier.
>>
>>
>
>

Similar Messages

  • How to list IP address from client on the Server (TCP/IP CLIENT SERVER COMMUNICATION)

    Excuse me,
    In this project I want to ask how to add list IP from client that connect to server.
    I have edited slightly the project.
    'SERVER
    Imports System.Net
    Imports System.Net.Sockets
    Imports System.Threading
    Imports System.Threading.Tasks
    Imports System.Reflection
    Public Class ServerForm
    Private _Listener As TcpListener
    Private _Connections As New List(Of ConnectionInfo)
    Private _ConnectionMonitor As Task
    Private Sub Button_Checked(sender As System.Object, e As System.EventArgs) Handles StartStopButton.CheckedChanged
    If StartStopButton.Checked Then
    StartStopButton.Text = "Stop"
    StartStopButton.Image = My.Resources.StopServer
    _Listener = New TcpListener(IPAddress.Any, CInt(PortTextBox.Text))
    _Listener.Start()
    Dim monitor As New MonitorInfo(_Listener, _Connections)
    ListenForClient(monitor)
    _ConnectionMonitor = Task.Factory.StartNew(AddressOf DoMonitorConnections, monitor, TaskContinuationOptions.LongRunning)
    Else
    StartStopButton.Text = "Start:"
    StartStopButton.Image = My.Resources.StartServer
    CType(_ConnectionMonitor.AsyncState, MonitorInfo).Cancel = True
    _Listener.Stop()
    _Listener = Nothing
    End If
    End Sub
    Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
    Dim deltaPort As Integer
    If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
    MessageBox.Show("Port number between 1 and 65535", "Invalid Port Number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
    PortTextBox.SelectAll()
    e.Cancel = True
    End If
    End Sub
    Private Sub ListenForClient(monitor As MonitorInfo)
    Dim info As New ConnectionInfo(monitor)
    _Listener.BeginAcceptTcpClient(AddressOf DoAcceptClient, info)
    End Sub
    Private Sub DoAcceptClient(result As IAsyncResult)
    Dim monitorinfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
    If monitorinfo.Listener IsNot Nothing AndAlso Not monitorinfo.Cancel Then
    Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
    monitorinfo.Connections.Add(info)
    info.AcceptClient(result)
    ListenForClient(monitorinfo)
    info.AwaitData()
    Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
    Invoke(doUpdateConnectionCountLabel)
    End If
    End Sub
    Private Sub DoMonitorConnections()
    Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
    Dim doUpdateConnectionCountLabel As New Action(AddressOf UpdateConnectionCountLabel)
    Dim monitorInfo As MonitorInfo = CType(_ConnectionMonitor.AsyncState, MonitorInfo)
    Me.Invoke(doAppendOutput, "Server Started")
    Do
    Dim lostCount As Integer = 0
    For index As Integer = monitorInfo.Connections.Count - 1 To 0 Step -1
    Dim info As ConnectionInfo = monitorInfo.Connections(index)
    If info.Client.Connected Then
    If info.DataQueue.Count > 0 Then
    Dim messageBytes As New List(Of Byte)
    While info.DataQueue.Count > 0
    Dim value As Byte
    If info.DataQueue.TryDequeue(value) Then
    messageBytes.Add(value)
    End If
    End While
    Me.Invoke(doAppendOutput, "Message from IP: " + System.Text.Encoding.ASCII.GetString(messageBytes.ToArray))
    End If
    Else
    monitorInfo.Connections.Remove(info)
    lostCount += 1
    End If
    Next
    If lostCount > 0 Then
    Invoke(doUpdateConnectionCountLabel)
    End If
    _ConnectionMonitor.Wait(1)
    Loop While Not monitorInfo.Cancel
    For Each info As ConnectionInfo In monitorInfo.Connections
    info.Client.Close()
    Next
    monitorInfo.Connections.Clear()
    Invoke(doUpdateConnectionCountLabel)
    Me.Invoke(doAppendOutput, "Server Stoped")
    End Sub
    Private Sub UpdateConnectionCountLabel()
    ConnectionCountLabel.Text = String.Format("{0} Connections", _Connections.Count)
    End Sub
    Private Sub AppendOutput(message As String)
    If RichTextBox1.TextLength > 0 Then
    RichTextBox1.AppendText(ControlChars.NewLine)
    End If
    RichTextBox1.AppendText(message)
    RichTextBox1.ScrollToCaret()
    End Sub
    Private Sub ClearButton_Checked(sender As Object, e As EventArgs) Handles ClearButton.CheckedChanged
    If ClearButton.Checked Then
    RichTextBox1.Clear()
    End If
    End Sub
    End Class
    Public Class MonitorInfo
    Private _listener As TcpListener
    Public ReadOnly Property Listener As TcpListener
    Get
    Return _listener
    End Get
    End Property
    Private _connections As List(Of ConnectionInfo)
    Public ReadOnly Property Connections As List(Of ConnectionInfo)
    Get
    Return _connections
    End Get
    End Property
    Public Property Cancel As Boolean
    Public Sub New(tcpListener As TcpListener, connectionInfoList As List(Of ConnectionInfo))
    _listener = tcpListener
    _connections = connectionInfoList
    End Sub
    End Class
    Public Class ConnectionInfo
    Private _monitor As MonitorInfo
    Public ReadOnly Property Monitor As MonitorInfo
    Get
    Return _monitor
    End Get
    End Property
    Private _Client As TcpClient
    Public ReadOnly Property Client As TcpClient
    Get
    Return _Client
    End Get
    End Property
    Private _DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
    Public ReadOnly Property DataQueue As System.Collections.Concurrent.ConcurrentQueue(Of Byte)
    Get
    Return _DataQueue
    End Get
    End Property
    Private _Stream As NetworkStream
    Public ReadOnly Property Stream As NetworkStream
    Get
    Return _Stream
    End Get
    End Property
    Public Sub New(monitor As MonitorInfo)
    _monitor = monitor
    _DataQueue = New System.Collections.Concurrent.ConcurrentQueue(Of Byte)
    End Sub
    Private _LastReadLength As Integer
    Public ReadOnly Property LastReadLength As Integer
    Get
    Return _LastReadLength
    End Get
    End Property
    Private _Buffer(63) As Byte
    Public Sub AcceptClient(result As IAsyncResult)
    _Client = _monitor.Listener.EndAcceptTcpClient(result)
    If _Client IsNot Nothing AndAlso _Client.Connected Then
    _Stream = _Client.GetStream
    End If
    End Sub
    Public Sub AwaitData()
    _Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoReadData, Me)
    End Sub
    Private Sub DoReadData(result As IAsyncResult)
    Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
    Try
    If info.Stream IsNot Nothing AndAlso info.Stream.CanRead Then
    info._LastReadLength = info.Stream.EndRead(result)
    For Index As Integer = 0 To _LastReadLength - 1
    info._DataQueue.Enqueue(info._Buffer(Index))
    Next
    'info.SendMessage("Data Diterima " & info._LastReadLength & " Bytes")
    info.SendMessage("reply form server: " & info._LastReadLength & " Bytes")
    For Each otherInfo As ConnectionInfo In info.Monitor.Connections
    If Not otherInfo Is info Then
    otherInfo.SendMessage(System.Text.Encoding.ASCII.GetString(info._Buffer))
    End If
    Next
    info.AwaitData()
    Else
    info.Client.Close()
    End If
    Catch ex As Exception
    info._LastReadLength = -1
    End Try
    End Sub
    Private Sub SendMessage(message As String)
    If _Stream IsNot Nothing Then
    Dim messageData() As Byte = System.Text.Encoding.ASCII.GetBytes(message)
    Stream.Write(messageData, 0, messageData.Length)
    End If
    End Sub
    End Class
    'CLIENT
    Imports System.Net
    Imports System.Net.Sockets
    Public Class ClientForm
    Private _Connection As ConnectionInfo
    Private _ServerAddress As IPAddress
    Private Sub ClientForm_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    ValidateChildren()
    End Sub
    Private Sub ConnectButton_Checked(sender As Object, e As System.EventArgs) Handles ConnectButton.CheckedChanged
    If ConnectButton.Checked Then
    If _ServerAddress IsNot Nothing Then
    ConnectButton.Text = "Disconnect"
    ConnectButton.Image = My.Resources.StopServer
    Try
    _Connection = New ConnectionInfo(_ServerAddress, CInt(PortTextBox.Text), AddressOf InvokeAppendOutput)
    _Connection.AwaitData()
    Catch ex As Exception
    MessageBox.Show(ex.Message, "Error Connecting to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
    ConnectButton.Checked = False
    End Try
    Else
    MessageBox.Show("Invlid IP Server", "Cannt Connect to Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
    ConnectButton.Checked = False
    End If
    Else
    ConnectButton.Text = "Connect"
    ConnectButton.Image = My.Resources.StartServer
    If _Connection IsNot Nothing Then _Connection.Close()
    _Connection = Nothing
    End If
    End Sub
    Private Sub SendButton_Click(sender As System.Object, e As System.EventArgs) Handles SendButton.Click
    If _Connection IsNot Nothing AndAlso _Connection.Client.Connected AndAlso _Connection.Stream IsNot Nothing Then
    Dim buffer() As Byte = System.Text.Encoding.ASCII.GetBytes(InputTextBox.Text)
    _Connection.Stream.Write(buffer, 0, buffer.Length)
    End If
    End Sub
    Private Sub ServerTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles IPTextBox.Validating
    _ServerAddress = Nothing
    Dim remoteHost As IPHostEntry = Dns.GetHostEntry(IPTextBox.Text)
    If remoteHost IsNot Nothing AndAlso remoteHost.AddressList.Length > 0 Then
    For Each deltaAddress As IPAddress In remoteHost.AddressList
    If deltaAddress.AddressFamily = AddressFamily.InterNetwork Then
    _ServerAddress = deltaAddress
    Exit For
    End If
    Next
    End If
    If _ServerAddress Is Nothing Then
    MessageBox.Show("Cannot resolve Server Address", "invalid Server", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
    IPTextBox.SelectAll()
    e.Cancel = True
    End If
    End Sub
    Private Sub PortTextBox_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles PortTextBox.Validating
    Dim deltaPort As Integer
    If Not Integer.TryParse(PortTextBox.Text, deltaPort) OrElse deltaPort < 1 OrElse deltaPort > 65535 Then
    MessageBox.Show("Port number between 1 and 65535", "invalid Port number", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
    PortTextBox.SelectAll()
    e.Cancel = True
    End If
    End Sub
    Private Sub InvokeAppendOutput(message As String)
    Dim doAppendOutput As New Action(Of String)(AddressOf AppendOutput)
    Me.Invoke(doAppendOutput, message)
    End Sub
    Private Sub AppendOutput(message As String)
    If RichTextBox1.TextLength > 0 Then
    RichTextBox1.AppendText(ControlChars.NewLine)
    End If
    RichTextBox1.AppendText(message)
    RichTextBox1.ScrollToCaret()
    End Sub
    Private Sub ButtonClear_Click(sender As Object, e As EventArgs) Handles ButtonClear.Click
    RichTextBox1.Clear()
    InputTextBox.Clear()
    End Sub
    End Class
    Public Class ConnectionInfo
    Private _AppendMethod As Action(Of String)
    Public ReadOnly Property AppendMethod As Action(Of String)
    Get
    Return _AppendMethod
    End Get
    End Property
    Private _Client As TcpClient
    Public ReadOnly Property Client As TcpClient
    Get
    Return _Client
    End Get
    End Property
    Private _Stream As NetworkStream
    Public ReadOnly Property Stream As NetworkStream
    Get
    Return _Stream
    End Get
    End Property
    Private _LastReadLength As Integer
    Public ReadOnly Property LastReadLength As Integer
    Get
    Return _LastReadLength
    End Get
    End Property
    Private _Buffer(63) As Byte
    Public Sub New(address As IPAddress, port As Integer, append As Action(Of String))
    _AppendMethod = append
    _Client = New TcpClient
    _Client.Connect(address, port)
    _Stream = _Client.GetStream
    End Sub
    Public Sub AwaitData()
    _Stream.BeginRead(_Buffer, 0, _Buffer.Length, AddressOf DoreadData, Me)
    End Sub
    Public Sub Close()
    If _Client IsNot Nothing Then _Client.Close()
    _Client = Nothing
    _Stream = Nothing
    End Sub
    Private Sub DoreadData(result As IAsyncResult)
    Dim info As ConnectionInfo = CType(result.AsyncState, ConnectionInfo)
    Try
    If info._Stream IsNot Nothing AndAlso info._Stream.CanRead Then
    info._LastReadLength = info._Stream.EndRead(result)
    If info._LastReadLength > 0 Then
    Dim message As String = System.Text.Encoding.ASCII.GetString(info._Buffer)
    info._AppendMethod(message)
    End If
    info.AwaitData()
    End If
    Catch ex As Exception
    info._LastReadLength = -1
    info._AppendMethod(ex.Message)
    End Try
    End Sub
    End Class
    //ScreenShot server
    http://prntscr[dot]com/5t1ol3
    //Screenshot client
    http://prntscr[dot]com/5t1odj
    source: code[dot]msdn[dot]microsoft[dot]com/windowsdesktop/Simple-Multi-User-TCPIP-43cc3b44

    I have a similar chat application. When the user attempts to connect, instead of sending a simple string, the client sends a serialized object(xml string) with all relevant login and session information, this includes the user's IP address. Once the server
    receives said information, depending on the type of TCP broadcast (a custom enumerated type) information from one user may be passed to a single user, or distributed to many users.
    If it helps, here is the TCPBroadcast object I use. But in order for your server to understand it, you kind of have to build your server and client somewhat around it.
    Option Strict On
    Option Explicit On
    Option Infer Off
    Namespace TCPChat
    Public Class TCPBroadcast
    Public Property Message As String
    Public Property BroadCastTime As DateTime
    Public Property DestUser As String
    Public Property OriginUser As String
    Public Property PasswordHash As String
    Public Property BroadcastSourceIP As String
    Public Property BroadCastType As TCPBroadcastType
    Public Property LoginUserName As String
    Public Property FailureReason As String
    Public Function XmlEncoding() As String
    Dim serializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
    Dim XML As String = String.Empty
    Using memStream As New IO.MemoryStream
    Using xmlWriter As New Xml.XmlTextWriter(memStream, System.Text.Encoding.UTF8) With _
    {.Indentation = 4, .Formatting = System.Xml.Formatting.Indented}
    serializer.Serialize(xmlWriter, Me)
    End Using
    XML = System.Text.Encoding.UTF8.GetString(memStream.ToArray)
    End Using
    Return XML
    End Function
    Public Function ToBinary() As Byte()
    Return System.Text.Encoding.UTF8.GetBytes(Me.XmlEncoding)
    End Function
    Public Shared Function FromBinary(binary As Byte()) As DeserializationResult
    Dim xml As String = System.Text.Encoding.UTF8.GetString(binary)
    Return FromXML(xml)
    End Function
    Public Shared Function FromXML(xml As String) As DeserializationResult
    Dim DeserializationResult As New DeserializationResult
    DeserializationResult.Error = False
    Try
    Dim deserializer As New Xml.Serialization.XmlSerializer(GetType(TCPBroadcast))
    Dim buffer As Byte() = System.Text.Encoding.UTF8.GetBytes(xml)
    Using memStream As New IO.MemoryStream(buffer)
    DeserializationResult.tcpBroadCast = CType(deserializer.Deserialize(memStream), TCPBroadcast)
    End Using
    Catch ex As Exception
    DeserializationResult.Error = True
    DeserializationResult.ErrorMessage = ex.ToString
    DeserializationResult.AttemptedXML = xml
    End Try
    Return DeserializationResult
    End Function
    Public Class DeserializationResult
    Public [Error] As Boolean
    Public ErrorMessage As String
    Public tcpBroadCast As TCPBroadcast
    Public AttemptedXML As String
    Sub New()
    End Sub
    End Class
    Public Enum TCPBroadcastType
    AdministrativeMessage
    AuthenticationFailure
    AuthenticationSuccess
    ChatBroadcast
    CredentialsRequest
    Credentials
    DisconnectedByServer
    KeepAlive
    PrivateMessage
    ServerMessage
    SystemMessage
    UnableToProcessRequest
    End Enum
    End Class
    End Namespace
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

  • Opening FLA file in CS5.5 compared to CS6 - possible glitches in CS6?

    I've tried opening one of my FLA files from a client with CS6 and the components on the scene are mis-aligned,invisible and unselectable whereas if I open it in CS5.5, then it opens fine and everything is displays perfectly.
    Why would this be?

    i've seen it before and could not explain it.

  • Need help: Using JMS to callback a client.

    Hi everyone,
    I'm having a very frustrating problem. I'm just started to use JMS to overcome callback
    problem with EJBs. I simply want my EJB to send something (pub/sub) to my client so it
    can update some display. I first instantiate my Client and TopicConnection etc. etc. then
    create the EJB, invoke it and the EJB sends some TextMessage back. However, the TextMessage
    never seems to arrive at my Client. The TextListener never seems to deliver.
    Here's the snippet:
    EJB:
    private void createPublisher() {
    try {
    Context ctx = new InitialContext();
    System.out.println("Server looking up JMS Service");
    TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
    p/env/jms/MobiDTopicConnectionFactory");
    topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
    con = conFtry.createTopicConnection();
    session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    publisher = session.createPublisher(topic);
    TextMessage mesg = session.createTextMessage();
    System.out.println("Server is sending message, see anything?");
    mesg.setText("This is from publisher");
    publisher.publish(mesg);
    // Exception catching stuff snipped.
    public void ejbCreate() { createPublisher(); }
    Client:
    public void createSubscriber() {
    try {
    Context ctx = new InitialContext();
    TopicConnectionFactory conFtry = (TopicConnectionFactory) ctx.lookup("java:com
    p/env/jms/MobiDTopicConnectionFactory");
    Topic topic = (Topic) ctx.lookup("java:comp/env/jms/TopicName");
    con = conFtry.createTopicConnection();
    session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    subscriber = session.createSubscriber(topic);
    subscriber.setMessageListener(new TextListener());
    con.start();
    System.out.println("Connection started");
    // Exception stuff snipped.
    public static void main(String args[]) {
    try {
    ConverterClient cc = new ConverterClient();
    cc.createSubscriber();
    System.out.println("Subscriber is ready");
    Context initial = new InitialContext();
    System.out.println("Looking up the bean...");
    Object ref = initial.lookup("java:comp/env/ejb/SimpleConverter");
    System.out.println("Getting the home interface");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(ref,
    ConverterHome.class);
    Converter conv = home.create();
    double amount = conv.dollarToYen(100.00);
    InputStreamReader inputStreamReader = new InputStreamReader(System.in);
    char answer = '\0';
    while (!((answer == 'q') || (answer == 'Q'))) {
    try {
    answer = (char) inputStreamReader.read();
    } catch (IOException e) {
    System.out.println("I/O exception: "
    + e.toString());
    Can anyone spot what's wrong with the code? I've been trying to get this to work for the
    past two days but to no avail. Please help...
    Thank you in advance.
    -vincent

    Hi, thanks for all your reply.
    The TextListener is the one downloaded from this website in the
    tutorial but I used it in different program. Here's the TextListener:
    public void onMessage(Message message) {
    System.out.println("Receiving message in onMessage()");
    TextMessage msg = null;
    try {
    if (message instanceof TextMessage) {
    msg = (TextMessage) message;
    System.out.println("Reading message: " +
    msg.getText());
    } else {
    System.out.println("Message of wrong type: " +
    message.getClass().getName());
    } catch (JMSException e) {
    System.out.println("JMSException in onMessage(): " +
    e.toString());
    } catch (Throwable t) {
    System.out.println("Exception in onMessage():" +
    t.getMessage());
    Strangely, this does not work as it never print the message. Can't see what's
    wrong from a glance though and I'm not getting any error message whatsoever.
    However, I tried my own listener:
    static class MyListener implements MessageListener {
    public MyListener() { }
    public void onMessage(Message msg) {
    try {
    System.out.println("Message received: " + ((TextMessage) msg).getText())
    catch(JMSException ex) { ex.printStackTrace(); }
    And this works...I just don't get it. MyListener is a static because I used it in my main().
    Anyone can give any comment?
    thanks,
    -vincent

  • Unable to open fla file using CS3 Professional

    Hello All,
    I am having issues opening up fla files using Adobe cs3.
    Scenario:  The company I work for recently attained a client that has a website with flash programming on it.  The client recently asked to have improvements made to their site.   Part of the improvement deals with modifying the flash program.   The client was able to hand over to the company I work for the source for their site which includes the adobe files for the flash program.
    When I attempt to access the main fla program of the client's website, i receive the following message:
    "an error occurred opening the file."
    what options are available for me to attempt to read the fla file?
    Thank you for any information in advance
    Eric

    Good day Eric,
    maybe the flash programer uses latest flash version, where some of the components is needs to open in the latest flash...
    you may try to open it in CS4 then save as CS3...
    hope this will help
    Oliver Gonzales

  • What is a client? plzz explian with example? plzzzzzzzzzz

    plzzzzzzzzzzz

    Hi
    Refer this link
    http://help.sap.com/saphelp_nw04/helpdata/en/d8/a2463cae8f505fe10000000a11402f/frameset.htm
    Client-Specific Data
    Definition
    Application Data
    To enable a mySAP.com solution for multiple client operations, you must make sure that all application tables are client-specific. This is an essential prerequisite for the isolated data needed by multiple clients. The existence of cross-client application data would mean that you have write access to this data from all clients. This would contradict the multiple client operations of the corresponding sub-application.
    Client-Specific Customizing
    The majority of business Customizing data is client-specific. This client-specific data includes:
    Parameters relating to organizational structures, since the organizational structure belongs only to the enterprise.
    Parameter tables that control business processes defined in client-specific Customizing.
    Each customer must be able to define this data individually. Typical multiclient scenarios will usually combine clients that have very similar requirements, and that do not make changes to the program logic of the mySAP.com solution. Also, all technical system administration tasks are performed by the provider, who is usually also the owner of the required technical settings. Despite the similarity of the customer requirements, it is still a good idea not to restrict the customer's Customizing options too much. You can then react to individual requests in emergencies (probably at extra cost). This is particularly useful in scenarios where the clients are competitors, since optimized business processes often form the basis of a profitable enterprise in a competitive market.
    Hope it is useful...
    Regards
    Raj
    Message was edited by:
            Rajasekhar Dinavahi

  • How to create a simple File structure for a large project?

    Hi to all,
    I've own and operated my own website design/development (a 1 woman office, plus many sub-contractors) over the period of 8 years. I started hand-coding HTML sites in 1997, before the creation DW (though I think the first ver was for Mac in '97). Over the recent years I've udated my skills to include CSS and enough Java/PHP to customize and/or troubleshoot current projects (learn as I go).
    The majority of my clients have been other 1-10 person entrepreneur companies. I've recently won a bid to redesign a government site which consist of 30 departments, including their main site.
    The purpose of this thread is to get some ideas on creating a file management/structure. Creating file management setup for smaller companies was a piece of cake, using a simple file mgmt structure within DW. Their current file structure is all over the place. I've read about a very good, simple file struture in a DW CS4 manual and wanted to get feedback on different methods that have worked, and have not worked, or your client:
    Here's my thinking:
    1. within the root dir place home.htm and perhaps a few .htm related only to home
        2. create the following folders off the root, "docs, imgs/global, CSS, FLA, Departments"
                - sub folders within docs for each dept
                - site wide css's placed into CSS
                - site wide FLAs into the FLA
                - sub-folders created within 'imgs' for each dept, including a 'global folder' for sitewide images and menu imgs (if needed)
    - OR -
    1. create same file structure for each dept folder, such as 'imgs/CSS/FLA/Docs'
    Open for suggestions....
    Ciao

    It is a problem I have thought over at length and still feel what I use could be better. You are doing it the right way around researching before you start, as moving files once things are underway can course real problems. One issue is the use of similar assets across site(s), and version control if you have multiple versions of the same asset.
    Can not say I have built a site(s) of that size but would recommend putting together a flow chart to help visualise the structure and find out better ways organising (works for me). Good luck, post back with your solution.

  • Error in Retroactive wages in payslip and Payroll register

    Dear Consultants,
    One of my client facing error while retroactive wage display in payslip and as well as Payroll register, when the employee is having any retro arrears that time the total arrears are coming as "Stat.net subs.adjustment" but client want the break up of this total arrear amount.
    sample payslip :
    Then I have created a new Payroll remuneration statement through PC00_M40_CEDT as below
    After doing this changes the in the payslip I am able to see the retro amount break up in pay slip, but the retro amount is not calculated to /101 gross amount, and PF employee contribution is coming 3 times. can any one let me now what are the exact requirement for this issue ?
    When I checked in RT table after running with the new paylip varient there are only two PF employee contribytions are there 1 is /3F1 calculating for current month earnings, and /ZF5 calculating for retro amount. there is no other employee PF deductions are there then form where this 3rd PF is coming in payslip? please do needful.
    Thanks
    Naresh

    Dear Praneeth,
    Do I need to create new wage types for arrears amount? and am giving the currently using PCRs
    IN42, ZN43 (IN43), IN44. kindly help me in changing of this PCRs.
    PCR (currently using in Payroll schema):
    IN42:
    PCR ZN43:
    PCR IN44:
    This are the PCRs IN42, ZN43 (IN43), IN44 using in production payroll Schema.
    please do needful.
    Thanks Regards,
    Naresh

  • Database Connection fails on some computers

    Hi.
    We've got some problems with .net application and CR viewer.
    We use Visual Studio 2005 and CR XI
    Connection is established with the same parameters as the application is connecting with the database:
    Private Sub ConfigureCrystalReports()
            Dim crConnectionInfo As ConnectionInfo
            Dim crDatabase As Database
            Dim crTables As Tables, crTable As Table
            Dim crLogOnInfo As TableLogOnInfo
            Dim crSections As Sections, crSection As Section
            Dim crReportObjects As ReportObjects, crReportObject As ReportObject
            Dim crSubreportObject As SubreportObject, crSubreport As ReportDocument
            Using cnn1 As New SqlClient.SqlConnection(ConString)
                crConnectionInfo = New ConnectionInfo
                With crConnectionInfo
                    .ServerName = cnn1.DataSource
                    .DatabaseName = cnn1.Database
                    .UserID = "juhi"
                    .Password = "********"
                End With
            End Using
            crDatabase = crreport.Database
            crTables = crDatabase.Tables
            For Each crTable In crTables
                crLogOnInfo = crTable.LogOnInfo
                crLogOnInfo.ConnectionInfo = crConnectionInfo
                crTable.ApplyLogOnInfo(crLogOnInfo)
            Next
            crSections = crreport.ReportDefinition.Sections
            For Each crSection In crSections
                crReportObjects = crSection.ReportObjects
                For Each crReportObject In crReportObjects
                    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
                        crSubreportObject = CType(crReportObject, SubreportObject)
                        crSubreport = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
                        crDatabase = crSubreport.Database
                        crTables = crDatabase.Tables
                        For Each crTable In crTables
                            crLogOnInfo = crTable.LogOnInfo
                            crLogOnInfo.ConnectionInfo = crConnectionInfo
                            crTable.ApplyLogOnInfo(crLogOnInfo)
                        Next
                    End If
                Next
            Next
            CrystalReportViewer1.ReportSource = crreport
        End Sub
    On the Clients we have installed CRRedist2005_x86.msi
    On some Clients it works perfectly ... on others there is no connection established and after minutes (felt like hours) a login msgbox appears ... with all logon info but the password. But even typing in the correct pw will not establish the connection.

    OK. here is your issue:
    1) You are using CR XI release 1 Professional to develop an .NET app
    2) You are using CR XI release 1 in .NET 2005
    CR XI release 1 Professional is not licensed for development and using it as such is breaking the license agreement. As a matter of fact, CR XI Pro does not even install the CR assemblies for .NET(!). The only way you were able to develop is that you downloaded the runtime files as a separate msm download and installed that on the dev computer - not supported - against licenses.
    The most likely reason your keycode will not work with CR XI release 1 is that you are now installing the Developer version and you only have the Pro version keycode.
    For you to proceed, you will have to uninstall CR XI Pro release 1. Uninstall and CR XI release 2. Clean up your registry. Obtain a valid install of CR XI release 2 Developer. Install that. Update your CR assembly references in .NET. The use the correct runtime for CR XI R2 to distribute your application.
    Ludek

  • I will pay for who can help me with this applet

    Hi!, sorry for my english, im spanish.
    I have a big problem with an applet:
    I�ve make an applet that sends files to a FTP Server with a progress bar.
    Its works fine on my IDE (JBuilder 9), but when I load into Internet Explorer (signed applet) it crash. The applet seems like blocked: it show the screen of java loading and dont show the progress bar, but it send the archives to the FTP server while shows the java loading screen.
    I will pay with a domain or with paypal to anyone who can help me with this problematic applet. I will give my code and the goal is only repair the applet. Only that.
    My email: [email protected]
    thanks in advance.
    adios!

    thaks for yours anwswers..
    harmmeijer: the applet is signed ok, I dont think that is the problem...
    itchyscratchy: the server calls are made from start() method. The applet is crashed during its sending files to FTP server, when finish, the applet look ok.
    The class I use is FtpBean: http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/
    (I test too with apache commons-net, and the same effect...)
    The ftp is Filezilla in localhost.
    This is the code, I explain a little:
    The start() method calls iniciar() method where its is defined the array of files to upload, and connect to ftp server. The for loop on every element of array and uploads a file on subirFichero() method.
    Basicaly its this.
    The HTML code is:
    <applet
           codebase = "."
           code     = "revelado.Upload.class"
           archive  = "revelado.jar"
           name     = "Revelado"
           width    = "750"
           height   = "415"
           hspace   = "0"
           vspace   = "0"
           align    = "middle"
         >
         <PARAM NAME="usern" VALUE="username">
         </applet>
    package revelado;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.border.*;
    import java.net.*;
    import ftp.*;
    public class Upload
        extends Applet {
      private boolean isStandalone = false;
      JPanel jPanel1 = new JPanel();
      JLabel jLabel1 = new JLabel();
      JLabel jlmensaje = new JLabel();
      JLabel jlarchivo = new JLabel();
      TitledBorder titledBorder1;
      TitledBorder titledBorder2;
      //mis variables
      String DIRECTORIOHOME = System.getProperty("user.home");
      String[] fotos_sel = new String[1000]; //array of selected images
      int[] indice_tamano = new int[1000]; //array of sizes
      int[] indice_cantidad = new int[1000]; //array of quantitys
      int num_fotos_sel = 0; //number of selected images
      double importe = 0; //total prize
      double[] precios_tam = {
          0.12, 0.39, 0.60, 1.50};
      //prizes
      String server = "localhost";
      String username = "pepe";
      String password = "pepe01";
      String nombreusuario = null;
      JProgressBar jProgreso = new JProgressBar();
      //Obtener el valor de un par�metro
      public String getParameter(String key, String def) {
        return isStandalone ? System.getProperty(key, def) :
            (getParameter(key) != null ? getParameter(key) : def);
      //Construir el applet
      public Upload() {
      //Inicializar el applet
      public void init() {
        try {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
      //Inicializaci�n de componentes
      private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder("");
        titledBorder2 = new TitledBorder("");
        this.setLayout(null);
        jPanel1.setBackground(Color.lightGray);
        jPanel1.setBorder(BorderFactory.createEtchedBorder());
        jPanel1.setBounds(new Rectangle(113, 70, 541, 151));
        jPanel1.setLayout(null);
        jLabel1.setFont(new java.awt.Font("Dialog", 1, 16));
        jLabel1.setText("Subiendo archivos al servidor");
        jLabel1.setBounds(new Rectangle(150, 26, 242, 15));
        jlmensaje.setFont(new java.awt.Font("Dialog", 0, 10));
        jlmensaje.setForeground(Color.red);
        jlmensaje.setHorizontalAlignment(SwingConstants.CENTER);
        jlmensaje.setText(
            "Por favor, no cierre esta ventana hasta que termine de subir todas " +
            "las fotos");
        jlmensaje.setBounds(new Rectangle(59, 49, 422, 30));
        jlarchivo.setBackground(Color.white);
        jlarchivo.setBorder(titledBorder2);
        jlarchivo.setHorizontalAlignment(SwingConstants.CENTER);
        jlarchivo.setBounds(new Rectangle(16, 85, 508, 24));
        jProgreso.setForeground(new Color(49, 226, 197));
        jProgreso.setBounds(new Rectangle(130, 121, 281, 18));
        jPanel1.add(jlmensaje, null);
        jPanel1.add(jlarchivo, null);
        jPanel1.add(jProgreso, null);
        jPanel1.add(jLabel1, null);
        this.add(jPanel1, null);
        nombreusuario = getParameter("usern");
      //Iniciar el applet
      public void start() {
        jlarchivo.setText("Start() method...");
        iniciar();
      public void iniciar() {
        //init images selected array
        fotos_sel[0] = "C:/fotos/05160009.JPG";
        fotos_sel[1] = "C:/fotos/05160010.JPG";
        fotos_sel[2] = "C:/fotos/05160011.JPG";
         // etc...
         num_fotos_sel=3; //number of selected images
        //conectar al ftp (instanciar clase FtpExample)
        FtpExample miftp = new FtpExample();
        miftp.connect();
        //make the directory
         subirpedido(miftp); 
        jProgreso.setMinimum(0);
        jProgreso.setMaximum(num_fotos_sel);
        for (int i = 0; i < num_fotos_sel; i++) {
          jlarchivo.setText(fotos_sel);
    jProgreso.setValue(i);
    subirFichero(miftp, fotos_sel[i]);
    try {
    Thread.sleep(1000);
    catch (InterruptedException ex) {
    //salida(ex.toString());
    jlarchivo.setText("Proceso finalizado correctamente");
    jProgreso.setValue(num_fotos_sel);
    miftp.close();
    //Detener el applet
    public void stop() {
    //Destruir el applet
    public void destroy() {
    //Obtener informaci�n del applet
    public String getAppletInfo() {
    return "Subir ficheros al server";
    //Obtener informaci�n del par�metro
    public String[][] getParameterInfo() {
    return null;
    //sube al ftp (a la carpeta del usuario) el archivo
    //pedido.txt que tiene las lineas del pedido
    public void subirpedido(FtpExample miftp) {
    jlarchivo.setText("Iniciando la conexi�n...");
    //make folder of user
    miftp.directorio("www/usuarios/" + nombreusuario);
    //uploads a file
    public void subirFichero(FtpExample miftp, String nombre) {
    //remote name:
    String nremoto = "";
    int lr = nombre.lastIndexOf("\\");
    if (lr<0){
    lr = nombre.lastIndexOf("/");
    nremoto = nombre.substring(lr + 1);
    String archivoremoto = "www/usuarios/" + nombreusuario + "/" + nremoto;
    //upload file
    miftp.subir(nombre, archivoremoto);
    class FtpExample
    implements FtpObserver {
    FtpBean ftp;
    long num_of_bytes = 0;
    public FtpExample() {
    // Create a new FtpBean object.
    ftp = new FtpBean();
    // Connect to a ftp server.
    public void connect() {
    try {
    ftp.ftpConnect("localhost", "pepe", "pepe01");
    catch (Exception e) {
    System.out.println(e);
    // Close connection
    public void close() {
    try {
    ftp.close();
    catch (Exception e) {
    System.out.println(e);
    // Go to directory pub and list its content.
    public void listDirectory() {
    FtpListResult ftplrs = null;
    try {
    // Go to directory
    ftp.setDirectory("/");
    // Get its directory content.
    ftplrs = ftp.getDirectoryContent();
    catch (Exception e) {
    System.out.println(e);
    // Print out the type and file name of each row.
    while (ftplrs.next()) {
    int type = ftplrs.getType();
    if (type == FtpListResult.DIRECTORY) {
    System.out.print("DIR\t");
    else if (type == FtpListResult.FILE) {
    System.out.print("FILE\t");
    else if (type == FtpListResult.LINK) {
    System.out.print("LINK\t");
    else if (type == FtpListResult.OTHERS) {
    System.out.print("OTHER\t");
    System.out.println(ftplrs.getName());
    // Implemented for FtpObserver interface.
    // To monitor download progress.
    public void byteRead(int bytes) {
    num_of_bytes += bytes;
    System.out.println(num_of_bytes + " of bytes read already.");
    // Needed to implements by FtpObserver interface.
    public void byteWrite(int bytes) {
    //crea un directorio
    public void directorio(String nombre) {
    try {
    ftp.makeDirectory(nombre);
    catch (Exception e) {
    System.out.println(e);
    public void subir(String local, String remoto) {
    try {
    ftp.putBinaryFile(local, remoto);
    catch (Exception e) {
    System.out.println(e);
    // Main
    public static void main(String[] args) {
    FtpExample example = new FtpExample();
    example.connect();
    example.directorio("raul");
    example.listDirectory();
    example.subir("C:/fotos/05160009.JPG", "/raul/foto1.jpg");
    //example.getFile();
    example.close();

  • Convert Multiple Outlook Emails to Multiple PDF Files (Not Portfolio or Single PDF) for Archiving?

    Hi all, I am learning how to convert emails to PDF files and there is some great functionality there!!  I have not discovered how to convert multiple outlook emails into multiple PDF files (one PDF file for each email) - all at the same time (not one at a time)!!  Is there a way to do this using Acrobat X??  The purpose of this is for long-term business archiving.  When I search for an email in the archive, I do not want to pull up a portfolio containing 1000 emails or a 1000 page PDF file with multiple emails run together!!!  I want to pull up individual emails containing my search terms.  I have been searching for a way to archive emails and MS OUTLOOK .PST files are NOT the answer.  I get a lot of business emails with large attachments and I do not file my emails in separate sub-folders (by client or job).  I want to convert multiple emails (by date range) from my UNIVERSAL INBOX into multiple PDF files for long term storage (with each email being converted into its own, separate PDF file and named with the same name as the "Re: line" of the email).  This has been a HUGE problem for me....and Acrobat is sooooo close to the solution for me.  Can anyone help??  If so, will attachments be converted?  If not, is there a separate software program or add-in that I can buy that will do this??  I use MS Office 2010, Adobe Acrobat X Pro, Windows 7 64 BIT.  Thanks for your help!!

    I am a retired person and did'nt realize I already have a Adobe account, so you can scrap the entire information. Thanks for the trial anyway and have a great week.
    Frederick

  • FI Validation for Payment term in Purchase Order

    Hi All,
    Please help me with this if we could have some validation
    Client want to restrict the payment term to (2-3 options) selection at the time of PO and invoice entry
    Example:if we set up a merch vendor with 75 day terms the buyer can't choose anything but 75 day terms, but if we added 30 day terms they could choose either 75 or 30 days.
    I understand that we cannot maintain 2 payment term in purchasing data of vendor master without sub ranges( which client doesnt want)
    but was wondering if there  any solution to it (no enhancement)

    Hi,
    Payment terms are maintained in SPRO>Financial Accounting>accounts recvable and payable>incoming invoices>maintain payment terms
    check for yourself you will come to know how those are maintained
    Best Regards
    Diwakar
    reward if useful

  • SSL: Received fatal alert: certificate_unknown Problem

    Hi all, first I read this thread http://forums.sun.com/thread.jspa?threadID=5385002 but I didnt help me so i startad a new one.
    I´m doing a client, server and thread implementation with ssl, i copied certifcates and keystores on the directories and so on.
    Here is the error on the server, just when a client conects:
    javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
         at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
         at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
         at java.io.ObjectInputStream.<init>(Unknown Source)
         at org.tockit.comunication.ServerThread.run(ServerThread.java:55)
         at java.lang.Thread.run(Unknown Source)Here is the code of the client, server and server thread, i cant find the error as i follow some tutorials and it worked:
    import java.io.BufferedReader;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.Socket;
    import java.net.UnknownHostException;
    import java.util.ArrayList;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    import citic.android.remoteir.ComConstants;
    import citic.android.remoteir.SendMessage;
    public class Client {
             public static void main(String[] args)
                 // Se crea el cliente y se le manda pedir el fichero.
                 Client cf = new Client();
                 BufferedReader in = null;
                 BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
                 String userInput;
                 cf.pide("rup", "localhost", 27960, 0, 20);
             public void pide(String query, String servidor, int puerto, int startIndex, int count)
                 try
                     // Se abre el socket.
                      SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
                        SSLSocket socket = (SSLSocket)sslsocketfactory.createSocket(servidor,puerto);
                     ObjectOutputStream oos = new ObjectOutputStream(socket
                             .getOutputStream());
                     SendMessage mensaje = new SendMessage();
                     mensaje.queryTerms = query;
                     mensaje.startIndex = startIndex;
                     mensaje.count = count;
                     oos.writeObject(mensaje);
                     ObjectInputStream ois = new ObjectInputStream(socket
                             .getInputStream());
                     ComConstants mensajeRecibido;
                     Object mensajeAux;
                     String mensa = null;
                     do
                         mensajeAux = ois.readObject();
                         // Si es del tipo esperado, se trata
                         if (mensajeAux instanceof ComConstants)
                             mensajeRecibido = (ComConstants) mensajeAux;
                             System.out.println("Client has Search Results");
                             String test;
                             test = new String(
                                     mensajeRecibido.fileContent, 0,
                                     mensajeRecibido.okBytes);
                             if (mensa == null) {
                                  mensa = test;
                             else {
                                    mensa += test;
                             System.out.println("client mierda" + test);
                         } else
                             System.err.println("Mensaje no esperado "
                                     + mensajeAux.getClass().getName());
                             break;
                     } while (!mensajeRecibido.lastMessage);
                     SaxParser sap = new SaxParser(mensa);
                     ois.close();
                     socket.close();
                 } catch (Exception e)
                     e.printStackTrace();
    package org.tockit.comunication;
    import java.io.*;
    import java.net.*;
    import java.security.KeyStore;
    import javax.net.ssl.KeyManager;
    import javax.net.ssl.KeyManagerFactory;
    import javax.net.ssl.SSLContext;
    import javax.net.ssl.SSLServerSocket;
    import javax.net.ssl.SSLServerSocketFactory;
    import javax.net.ssl.SSLSocket;
    public class Server {
         public static void main(String[] args) throws IOException {
                 ServerSocket serverSocket = null;
                 boolean listening = true;
                 System.out.println("Indroduzca valor del puerto");
                 InputStreamReader isr = new InputStreamReader(System.in);
                 BufferedReader br = new BufferedReader (isr);
                 int port;
                 try
                      String texto = br.readLine();
                      int valor = Integer.parseInt(texto);
                      port = valor;
                      try {
                           System.setProperty("javax.net.ssl.keyStore","C:\\Program Files\\Java\\jre6\\bin\\remoteir.ks");
                             System.setProperty("javax.net.ssl.keyStorePassword","aquabona");
                             SSLServerSocketFactory sslServerSocketfactory = (SSLServerSocketFactory)SSLServerSocketFactory.getDefault();
                             SSLServerSocket sslServerSocket = (SSLServerSocket)sslServerSocketfactory.createServerSocket(port);
                             System.out.println("Arracando servidor en " + port);
                          while (listening){
                                  SSLSocket cliente = (SSLSocket)sslServerSocket.accept();
                               System.out.println("Aceptado cliente");
                                Runnable nuevoServer = new ServerThread(cliente);
                                Thread hilo = new Thread(nuevoServer);
                                hilo.start();
                      } catch (IOException e) {
                          System.err.println("Could not listen on port:" + port);
                          System.exit(-1);
                 catch (Exception e)
                     e.printStackTrace();
    }The line at at org.tockit.comunication.ServerThread.run(ServerThread.java:55) is marked with ERRRROOOOOORRRRR and serverThread cod is posted on the fisrt reply post.
    All this code works in absence of SSL (regular sockets).
    I have another question related to the SSLSockets in the method of the serverThread, will my SSLSockets in the serverThread´s methods work to comunicate with other servers as i try to do?
    Thanks!

    And this is a method like the ones i asked on #1, sorry about this but i cant post more than 7500 characters
        private void enviaFicheroMultiple(String query, ObjectOutputStream oos, int startIndex, int count, ArrayList<String> ips, ArrayList<String> ports, SearcherValue value)
            try
                 String finalString = "";
                String tempFinal = "";
                 QueryWithResult[] outputLine;
                 QueryWithResult[] finalResults = new QueryWithResult[1];
                 Operations op = new Operations();
                boolean enviadoUltimo=false;
                ComConstants mensaje = new ComConstants();
                mensaje.queryTerms = query;
                outputLine = op.processInput(query, value);
                       int i = 0;
                       boolean firstRun = true;
                       while (i < ips.size()) {
                            String ip = ips.get(i);
                            int port = Integer.parseInt(ports.get(i));
                       try
                       SSLSocketFactory sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
                   SSLSocket socket = (SSLSocket)sslsocketfactory.createSocket(ip,port);
                     ObjectOutputStream ooos = new ObjectOutputStream(socket
                             .getOutputStream());
                     SendMessage message = new SendMessage();
                     message.numDoc = value.numDoc;
                     message.docFreq = value.docFreq;
                     message.queryTerms = query;
                     message.startIndex = startIndex;
                     message.count = count;
                     message.multiple = false;
                     message.ips = null;
                     message.ports = null;
                     message.value = true;
                     message.docFreq = value.docFreq;
                     message.numDoc = value.numDoc;
                     ooos.writeObject(message);
                     ObjectInputStream ois = new ObjectInputStream(socket
                             .getInputStream());
                     QueryWithResult[] qwr = (QueryWithResult[]) ois.readObject();
                     int size = qwr.length;
                     int num=0;
                     boolean kk = true;
                     int pos = 0;
                     if(firstRun) {
                          finalResults = new QueryWithResult[size];
                        finalResults = qwr;
                        System.out.println("lenght" + finalResults.length);
                    } else {
                         QueryWithResult[] old = finalResults;
                         finalResults = new QueryWithResult[old.length + size];
                         int y =0;
                         while(y < old.length){
                              finalResults[y] = old[y];
                              y++;
                         int l = old.length;
                         int k = qwr.length;
                         while(l < finalResults.length){
                              finalResults[l] = qwr[0];
                              l++;
                     firstRun = false;
                     ois.close();
                     socket.close();
                 } catch (Exception e)
                     e.printStackTrace();
                 i++;
                 QueryWithResult[] old = finalResults;
              finalResults = new QueryWithResult[old.length + outputLine.length];
              int y =0;
              while(y < old.length){
                   finalResults[y] = old[y];
                   y++;
              int l = old.length;
              int k = outputLine.length;
              while(l < finalResults.length){
                   finalResults[l] = outputLine[0];
                   l++;
                       XmlConverter xce = new XmlConverter(finalResults, startIndex, count);
                    String serialized = xce.runConverter();
                       finalString = serialized + tempFinal;
                       finalString = finalString.trim();
                       System.out.println("Final String " + finalString);
                       byte mybytearray[] = finalString.getBytes();
                       ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(mybytearray);
                      BufferedInputStream bis = new BufferedInputStream(byteArrayInputStream);
                int readed = bis.read(mensaje.fileContent,0,4000);
                while (readed > -1)
                    mensaje.okBytes = readed;
                    if (readed < ComConstants.MAX_LENGTH)
                        mensaje.lastMessage = true;
                        enviadoUltimo=true;
                    else
                        mensaje.lastMessage = false;
                    oos.writeObject(mensaje);
                    if (mensaje.lastMessage)
                        break;
                    mensaje = new ComConstants();
                    mensaje.queryTerms = query;
                    readed = bis.read(mensaje.fileContent);
                if (enviadoUltimo==false)
                    mensaje.lastMessage=true;
                    mensaje.okBytes=0;
                    oos.writeObject(mensaje);
                oos.close();
            } catch (Exception e)
                e.printStackTrace();
        }

  • AS3 project development into Flashbuilder

    I have been using Flex3 for mxml flex RIA development and I do pure AS3 development with Flash CS3 resources, which in most cases I code in Flex Builder but test and compile in Flash AS3. Twisted I know but the reasons are simple:
    1. I can't access the fl components packages in Flex Builder easily (I have heard of ways to do so but having had a chance to research).
    2. I am often using resources from the library in a .fla file
    3. Clients in most cases have Flash but not Flex and expect a FLA
    4. I also use systems like SWFAddress so I need to compile to a .swf and test live or test the .swf in a standalone player
    Request:
    So firstly I know flex has its own components that are part of the framework but why not give us Developers easy access to the fl flash components (hence Flash Builder)?
    There needs to be an easy way of importing and using a FLA based AS3 project in Flash Builder. I heard about a Flex component that does that but why not at least give access to the library content off a FLA?
    I noticed it expects an AS3 project to be set out as Flex Builder does, using an application .as file named as that project. In the launch configuration you need to be able to browse and set your own application .as (that maybe the document class from the FLA). This would help the above request by letting users export/test in their current file/folder structure.
    Just my intial feedback.
    Cheers
    Elliot Rock

    Also, the best (and most official) way to suggest features is to log an enhancement request in the public Flex bug base at http://bugs.adobe.com/flex/.
    You may want to search to see if these have already been suggested and if so, vote on the issue. If not, file a new enhancement request and encourage people to vote on it.  

  • FI validation

    Hi All,
    Please help me with this if we could have some validation
    Client want to restrict the payment term to (2-3 options) selection at the time of PO and invoice entry
    Example:if we set up a merch vendor with 75 day terms the buyer can't choose anything but 75 day terms, but if we added 30 day terms they could choose either 75 or 30 days.
    I understand that we cannot maintain 2 payment term in purchasing data of vendor master without sub ranges( which client doesnt want)
    but was wondering if there any solution to it (no enhancement)

    Hi,
    Not possible as standard, you will need to go in for an enhancement.
    The simplest to do would be to create a matchcode which is based on your requirements.
    Cheers.

Maybe you are looking for

  • Multiple shift registers in For loop

    I'm using multiple shift registers to find the number of different string in a string array. However, the shift register got refreshed every time it finds a different string and returns back to 0. How can I have the register remember its previous val

  • Importing movie file - transitions don't work?

    Hi all, this is my first post. I searched a bit here and EVERYWHERE on the internet, but couldn't find a solution to my question. I'm trying to import a .mov file I created in powerpoint. In the file there are smooth transitions, where one images fad

  • SOLUTION MANAGER UPGRADE - Error when shadow system Starting

    Hi All, We are upgrading our Solman system from 7.0 EHP 1 to SOLMAN 7.1. But the system is uable to start the Shadow system. *** ERROR => DpHdlDeadWp: W0 (pid 12046) died (severity=0, status=65280) [dpxxwp.c 1522] DpTraceWpStatus: child (pid=12046) e

  • Are there any Canon all-in-one printers compatible with Yosemite v.10.10 and Windows 7?

    My current Canon Pixma MX850 printer just died. I'm looking for an All-in-One, preferably Canon, printer that is compatible with Yosemite version 10.10 and Windows 7. I have spent this weekend researching with no matches.  They all cover v.10.9 but n

  • Getting users for a role in EJB

    Hi How do I get the list of users associated with a particular role Ex: There is a requirement where I need to get all the users belonging to the admin role in a Sessionbean. How do I do this?